package com.cargohu.aishouyu.operation.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cargohu.aishouyu.operation.entity.AppVersion;
import com.cargohu.aishouyu.operation.req.AppVersionRequest;
import com.cargohu.aishouyu.operation.resp.AppVersionDetailVo;
import com.cargohu.aishouyu.operation.resp.AppVersionResponse;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * APP版本信息 Mapper 接口
 *
 * @author yww
 * @since 2023-11-29
 */
@Mapper
public interface AppVersionMapper extends BaseMapper<AppVersion> {

    /**
     * APP版本信息详情
     *
     * @param id
     * @return
     */
    AppVersionDetailVo getAppVersionById(Long id);

    /**
     * APP最新版本信息详情
     *
     * @return
     * @throws Exception
     */
    AppVersionDetailVo getLatestAppVersion(String platform);

    /**
     * APP版本信息分页列表
     *
     * @param appVersionRequest
     * @return
     */
    List<AppVersionResponse> getAppVersionList(AppVersionRequest appVersionRequest);

}
